package com.cnswhy.cloud.server.core.service.spell.impl;


import com.cnswhy.cloud.server.core.dao.SpellOrderMapper;
import com.cnswhy.cloud.server.core.entity.SpellOrder;
import com.cnswhy.cloud.server.core.service.spell.SpellOrderService;
import com.cnswhy.cloud.common.core.base.service.SuperServiceImpl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 业务实现类
 * 
 * </p>
 *
 * @author cnswhy
 * @date 2020-09-30
 */
@Slf4j
@Service

public class SpellOrderServiceImpl extends SuperServiceImpl<SpellOrderMapper, SpellOrder> implements SpellOrderService {
    @Override
    public int queryCustomerSpellOrder(SpellOrder bo) {
        return getBaseMapper().queryCustomerSpellOrder(bo);
    }

    @Override
    public BigDecimal querySpellSuccessMoney(String settDate) {
        return getBaseMapper().querySpellSuccessMoney(settDate);
    }

    @Override
    public BigDecimal querySpellSuccessMoneyAndSpellProduct(String settDate) {
        return getBaseMapper().querySpellSuccessMoneyAndSpellProduct(settDate);
    }

    @Override
    public List<SpellOrder> getSpellingOrder(String spellOrderId, Integer status) {
        return getBaseMapper().getSpellingOrder(spellOrderId,status);
    }

    @Override
    public List<SpellOrder> getSpellingOrderBySendStatus(String spellOrderId, Integer status) {
        return getBaseMapper().getSpellingOrderBySendStatus(spellOrderId,status);
    }

    @Override
    public List<SpellOrder> getSpellingOrderIsPrivilege(String spellOrderId, Integer status) {
        return getBaseMapper().getSpellingOrderIsPrivilege(spellOrderId,status);
    }
    @Override
    public void updateNewSpellOrderId(String spellOrderId, String newSpellOrderId) {
        getBaseMapper().updateNewSpellOrderId(spellOrderId,newSpellOrderId);
    }

    @Override
    public BigDecimal getUndealSumAmount() {
        return getBaseMapper().getUndealSumAmount();
    }
}
